<script>
	export default {
		onLaunch() {
			uni.getSystemInfo({
				success: function(info) {
					let iStatusBarHeight = Number(info.statusBarHeight) || 0;
					uni.setStorageSync('stausBarHeight', iStatusBarHeight);
				}
			});
			// #ifdef H5
			let ClientRect ={};
			let ClientRectTop = Number(ClientRect.top) || 24;
			let ClientRectHeight = Number(ClientRect.height) || 32;
			uni.setStorageSync('ClientRectTop', ClientRectTop);
			uni.setStorageSync('ClientRectHeight', ClientRectHeight);
			// #endif
			// this.versionupdate();
			// #ifdef MP-WEIXIN
			/*获取右上角胶囊信息->微信小程序、支付宝小程序、百度小程序、抖音小程序、QQ小程序  */ 
			let ClientRect = wx.getMenuButtonBoundingClientRect();
			let ClientRectTop = Number(ClientRect.top) || 24;
			let ClientRectHeight = Number(ClientRect.height) || 32;
			uni.setStorageSync('ClientRect', ClientRect);
			uni.setStorageSync('ClientRectTop', ClientRectTop);
			uni.setStorageSync('ClientRectHeight', ClientRectHeight);
			// #endif
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import './public/public.css';
	page{
		max-width: 800rpx;
		margin: auto;
	}
	/* 让图片更清晰，仅限image标签 */
	image{
		image-rendering: -moz-crisp-edges;
		image-rendering: -o-crisp-edges;
		image-rendering: -webkit-optimize-contrast;
		image-rendering: crisp-edges;
		-ms-interpolation-mode: nearest-neighbor;
	}
</style>
